import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main {

	public static void main(String[] args) {	
		
		ArrayList<Persona> persona = new ArrayList<Persona>();
		persona.add(new Persona("zalex","apZalex","dirZalex"));
		persona.add(new Persona("alez","apAlez","dirAlez"));
		persona.add(new Persona("fabien","apFabien","dirFabien"));
		persona.add(new Persona("zou","apZou","dirZou"));
		persona.add(new Persona("fabian","apFabian","dirFabian"));

		Collections.sort(persona, new Comparator<Persona>() {
		    public int compare(Persona v1, Persona v2) {
		        return v1.nombre.compareTo(v2.getNombre());
		    }
		});
		
		for (int i =0; i< persona.size(); i++){
		System.out.println(persona.get(i).getNombre() +", "+persona.get(i).getApellido()+", "+persona.get(i).getDireccion() );				
		}	
	}};
		
















